<?php
include("check.php");
include("check2.php");
include_once("../function.php");
header("Content-Type: text/html;charset=utf-8");
session_start();
if ($_POST['submit']){
	$uid=$_SESSION['ID'];
	$member_update['isdp']=1;
	edit_update_cl('member',$member_update,$uid);
	
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/table.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>店铺申请</title>

  <style>
	#test select{
		width:100px;
	}
	.yincang{
	display:none;
	}
	xianshi{
	display:block;
	}
  </style>
</head>
<body>
<form name="form1" method="post" action="?" onsubmit="return check();">
<?php
	$_member=que_select_cl('member',$_SESSION['ID']);
	if ($_member['isdp']<1){
?>
<table  width="100%" cellpadding="3" cellspacing="1" border="0" align="center" class="table1">
  <tr>
    <td width="35%" height="22" align="right">申请会员编号：</td>
    <td width="65%" align="left"><input name="nickname" type="text" id="nickname" size="20" maxlength="20" value="<?=$_SESSION['nickname']?>" readonly></td>
  </tr>

  <tr>
    <td colspan="2" align="center"><input name="submit" id="submit" type="submit" class="button_green" value="申  请"></td>
  </tr>
</table>
<?php
	}else if($_member['isdp']==1){
		echo "您的申请已经提交,正在审核中,请耐心等待.";	
	}else if($_member['isdp']>=2){
		$name="店铺";
		echo "您申请的{$name}已通过管理员审核,您的店铺编号为：".$_SESSION['nickname']."";		
	}
?>
</form>
</body>
</html>